<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix = "c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="static/css/bootstrap.min.css" />
	<link rel = "stylesheet" href = "static/css/globle.css"/>
	<script type="text/javascript" src = "static/js/jquery.js"></script>
	<title></title>
</head>
<body>
	  <div class="navbar navbar-fixed-top" id = "manager" >
			<div class="navbar-inner">
				<div class="container">
					<a  class = "brand" href="#" >项目管理系统</a>
			
				</div>
			</div>
		 </div>
	<div class="container" style = "margin-top:40px">
		<div class="row">
			<div class="span12">
				<div class="page-header">
					<h1>创建一个新项目</h1>
				</div>
			</div>
		</div>
		<div class="row">
			<div class = "span12">
			    <form class="form-horizontal" action = "project.jspx?_m=add" method = "post">
				    <fieldset>
					    <div class="control-group">
						    <label class="control-label" for="input01">项目名称</label>
						    <div class="controls">
						    <input type="text" class="input-xlarge" id="input01" x-webkit-speech x-webkit-grammar = "builtin:translate" id= "title" name = "name">
						    <c:if test="${param.code == '200' }"><span>该项目已经存在</span></c:if>
						    <p class="help-block">Supporting help text</p>
					    	</div>
					    </div>
					    <div class="control-group">
				            <label for="textarea" class="control-label">项目的主要描述</label>
				            <div class="controls">
				              <textarea rows="3" id="textarea" class="input-xlarge" name = "dec"></textarea>
				            </div>
				         </div>
				         
				         <div class="control-group">
				            <label for="select01" class="control-label">负责人</label>
				            <div class="controls">
				              <select id="select01" name = "manager">
				               <c:forEach items = "${pm}" var = "p">
				                	<option value = "${p.m_name }">${p.m_name}</option>
				               </c:forEach>
				              </select>
				            </div>
				          </div>
				          
				          <div class="control-group">
						    <label class="control-label" for="input01" >项目成员</label>
						    <div class="controls">
						    	<input type="text"  name = "members" class="input-xlarge" id="input01" x-webkit-speech x-webkit-grammar = "builtin:translate" >
					    	</div>
					     </div>
					     <div class="form-actions" style = "background-color:white;border-top:none">
				            <button class="btn btn-primary" type="submit">保存</button>
				            <button class="btn" type = "submit"><a href = "project.jspx">返回</a></button>
				          </div>
				    </fieldset>
				 </form>
				
				</div>
		</div>
				
	</div>
	<!-- 
	  <script type="text/javascript">
	  	$(document).ready(function(){
	  		$("#title").blur(function(){
	  			var name = $(this).val();
	  			$.post("project.jspx",{"name":name},function(result){
	  				if(result == 0){
	  					
	  				}
	  			})
	  		})
	  	
	  	})
	  
	  </script>
	   -->
</body>
</html>